#ifndef __CARSTOP_H_
#define __CARSTOP_H_

#include <string>
#include <ctime>
#include "LinkStack.h"
#include "LinkQueue.h"
struct Car
{
    Car(const std::string& Name):Name(Name),arriveTime(0),leaveTime(0){}
    std::string Name;  //车牌号
    time_t arriveTime;  //到达时间
    time_t leaveTime;   //离开时间
};


class CarStop  //停车场
{
public:
    CarStop(int size):size(size){}
    ~CarStop();
    void ComeCar();  //车辆到达
    void LeaveCar();  //车辆离开
    void Show();  //显示停车场状态
private:
    LinkStack stop;  //停车场栈
    LinkQueue pavement;  //便道队列
    const int size;  //停车位数量
};


#endif